package com.ai.bitcoin.jpa.dao;

import com.ai.bitcoin.jpa.entity.BccUserPlcEvent;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.ArrayList;
import java.util.List;

public interface BccUserPlcEventDao extends JpaRepository<BccUserPlcEvent, String> {

    BccUserPlcEvent findByTypeAndStatus(Integer type, Integer status);

    List<BccUserPlcEvent> findBySourceInAndStatusOrderBySortIndexAscSourceAsc(ArrayList<Integer> newArrayList, int status);
}
